﻿@using OA.AspNetCore.Html;
@using OA.Model;
@model OA.Model.BaseConfig
@{
    ViewBag.Title = "基础配置";
    Layout = "~/Areas/Admin/Views/Shared/_form_layout.cshtml";

    string msg = ViewBag.Msg;
    string tips = string.Empty;
    if (!string.IsNullOrWhiteSpace(msg))
    {
        tips = $"layer.msg('{msg}');";
    }
}
<link rel="stylesheet" type="text/css" href="@ViewBag.OssUrl/front/webuploader/webuploader.css">
<script type="text/javascript" src="@ViewBag.OssUrl/front/webuploader/webuploader.js"></script>
<script type="text/javascript" src="@ViewBag.OssUrl/front/js/common.js"></script>
<div class="fly-panel fly-panel-user" pad20="">
    <div class="layui-tab layui-tab-brief" lay-filter="user">
        <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:20px 40px 20px 0;">
            @using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form", id = "myForm" }))
            {
                @Html.AntiForgeryToken()


                <div class="layui-form-item">
                    @Html.LabelFor(model => model.SiteName, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.SiteName)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.Url, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.Url)
                    </div>
                </div>



                <div class="layui-form-item">
                    @Html.LabelFor(model => model.Logo, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.Logo)
                    </div>
                </div>




                <div class="layui-form-item">
                    @Html.LabelFor(model => model.Token, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.Token)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.Token2, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.Token2)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.Footer, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.Footer)
                    </div>
                </div>
                <div class="layui-form-item">
                    @Html.LabelFor(model => model.PositionLevel, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.PositionLevel)
                    </div>
                </div>

                <div class="layui-form-item">
                    @Html.LabelFor(model => model.OssUrl, new { @class = "layui-form-label" })
                    <div class="layui-input-block">
                        @Html.MyEditorFor(model => model.OssUrl)
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="submit" value="提 交" lay-submit="" lay-filter="OAForm" class="layui-btn mySubmit" />
                    </div>
                </div>
            }
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use('layer', function () {
        @Html.Raw(tips)
     });
</script>
